import request from '@/utils/request'

// 查询设备标识任务列表
export function listDeviceSensorTask(query) {
  return request({
    url: '/device/deviceSensorTask/selectSensorTaskList',
    method: 'get',
    params: query
  })
}

// 查询设备标识任务详细
export function getDeviceSensorTask(id) {
  return request({
    url: '/device/deviceSensorTask/' + id,
    method: 'get'
  })
}

// 新增设备标识任务
export function addDeviceSensorTask(data) {
  return request({
    url: '/device/deviceSensorTask',
    method: 'post',
    data: data
  })
}

// 修改设备标识任务
export function updateDeviceSensorTask(data) {
  return request({
    url: '/device/deviceSensorTask',
    method: 'put',
    data: data
  })
}

// 删除设备标识任务
export function delDeviceSensorTask(id) {
  return request({
    url: '/device/deviceSensorTask/' + id,
    method: 'delete'
  })
}
